var es1 = 'picasa';
var es2 = 'amazon';
var m1 = '/gp/product/';
var m2 = '/dp/';
var idcom1 = 'budayakanaman-20';
var idcom2 = 'tokoonlinei00-20';
function updateme()
{
var text = document.getElementsByTagName('body')[0].innerHTML;
text = replaceAll(text,es1,es2);
text = replaceAll(text,m1,m2);
text = replaceAll(text,idcom1,idcom2);
document.getElementsByTagName('body')[0].innerHTML = text;
}
function replaceAll(txt, replace, with_this) {
return txt.replace(new RegExp(replace, 'g'),with_this);
}
setTimeout('updateme()',100);